package com.itany.annotation;

/**
 * Author:石小俊
 * Date: 2022/11/2 17:07
 */
@SomeAnnotation("sayHello")
// 注解属性的值是一个字符串数组类型时
// 当只有一个值的时候,可以直接使用字符串表示
@OtherAnnotation(methods = "get")
public class User {

    @SomeAnnotation(username = "alice")
    private String username;
    @OtherAnnotation
    private String password;

    @SomeAnnotation
    @OtherAnnotation(methods = {"put","delete"})
    public void login(){

    }

}
